export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "deptId", //如果需要树型数据填写这个，否则为空
        defaultColumnWidth: null,//默认的列宽

        //UI
        defaultExpandAll: true, //是否默认展开所有行
        pagingShow: true,//本页1-2
        totalShow: true,//共10条数据
        paginationShow: true,//分页

        searchList: [
            {placeholder: '请输入标签', label: '标签名称', key: 'dictName', type: 'text'},
        ],
        buttonList: [
            {name: '刷新数据', type: 'primary', plain: true, emitLabel: 'refresh'},
            {name: '新增字典值', type: 'primary', emitLabel: 'add', power:"system:dict:add"}
        ],
        tableList: [
            {label: '字典编号', key: 'dictCode',},
            {label: '字典值标签', key: 'dictLabel', css:"listClass"},
            {label: '字典值', key: 'dictValue'},
            {label: '排序', key: 'dictSort'},
            {label: '状态', key: 'status', dicKey: "sys_normal_disable"},
            {label: '备注', key: 'remark'},
            {label: '创建时间', key: 'createTime'}
        ],
        tableButton: {
            name: '操作',
            list: [
                {name: '修改', type: 'success', emitLabel: 'edit', childrenDisplay: false, power:"system:dict:edit"},
                {name: '删除', type: 'danger', emitLabel: 'del', childrenDisplay: false, power:"system:dict:remove"}
            ]
        }
    }
    return config
}